package com.cetc32.dh.mybatis;

import com.cetc32.dh.entity.Organization;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrganizationMapper {

    List<Organization> findall();

    int deleteByPrimaryKey(Integer id);

    int insert(Organization record);

    int insertSelective(Organization record);

    List<Organization> selectByLimit(@Param("offset") Integer offset,@Param("limit") Integer limit);

    Organization selectByPrimaryKey(Integer id);

    int countOrganization();

    int updateByPrimaryKeySelective(Organization record);

    int updateByPrimaryKey(Organization record);
    List<Organization> findByKeyWord(String keyword);
}